#!/usr/bin/env python
# -*- conding: utf-8 -*-

"""
@Time     : 2024/8/13 6:36
@Author   : liujingmao
@File     : module.py
"""
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from injector import Binder, Module

from internal.extension.database_extension import db


class ExtensionModule(Module):
    """扩展模块的依赖注入"""

    def configure(self, binder: Binder) -> None:
        binder.bind(SQLAlchemy, to=db)
        binder.bind(Migrate, to=Migrate)
